<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
</head>
<body>
<form action='${url("Auth", action="save")}' method="post" class="tableform" id="RegisterForm">
  <div class="FloatLeft" style="width:33em;">
    <table>
      <tr py:if='not auth.login_is_email()'
          py:replace='f.Text("name", o, label="Login",
            title=u"um nome curto para sua identificação")' />
      ${f.Text(id="email", label="E-mail", size=25)}
      ${f.Text(id="display_name", label="Nome", size=33)}
      ${f.Text(id="password", label="Senha", size=15, password=True)}
      ${f.Text(id="profession", label=u"Profissão", size=30)}
      ${f.Text(id="organization", label="Organização ou empresa", size=35)}
      ${f.TextArea(id="phones", rows=3, cols=20, sizeable=False, label="Telefones (um por linha)")}
      ${f.Checkbox(id="newsletter", label="Newsletters", help="receber")}
      <tr>
        <th></th>
        <td>
          <input type="submit" class="Button" value="Enviar" />
        </td>
      </tr>
    </table>
  </div>
  <p py:content='reqfields_msg' />
  <fieldset py:if='not hide_address' style="width:26em;">
    <legend>Endereço</legend>
    <table>
    ${f.Text(id="street", label=u"Rua", size=35)}
    ${f.Text(id="district", label="Bairro", size=30)}
    ${f.Text(id="city", label="Cidade", size=20)}
    ${f.Text(id="province", label="Estado", size=4)}
    ${f.Text(id="country" , label=u"País" , size=15)}
    ${f.Text(id="zipcode" , label="CEP")}
    </table>
  </fieldset>
  <div py:if='auth.has_permission("Admin")()'>
    <br />
    <a href='${url("Auth", action="report")}'>Ver relatório de usuários</a>
  </div>
  ${f.Hidden(id="id")}
</form>
</body>
</html>
